package io.github.iogogogo;

import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * Created by tao.zeng on 2025/3/20.
 */
@Slf4j
@Setter
@SpringBootApplication
public class MvnVersionApplication implements CommandLineRunner {

    @Value("${app.version}")
    private String version;

    public static void main(String[] args) {
        SpringApplication.run(MvnVersionApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        log.info("project version => {}", version);
    }
}